package com.TemplateMethod;

import org.w3c.dom.xpath.XPathResult;

public class DefIntegralXX extends ADefiniteIntegral{
    private double a,b;
    private int c;
    public DefIntegralXX(double a,double b,int c){
        this.a = a;
        this.b = b;
        this.c = c;
    }
    @Override
    protected double geta() {
        return a;
    }

    @Override
    protected double getb() {
        return b;
    }

    @Override
    protected int getc() {
        return c;
    }

    @Override
    protected double function(double x) {
        return x;
    }
}
